package fem2.observer;

import fem2.Model;
import fem2.Observer;
import fem2.pre_and_post.GidPostStructural;

public abstract class GidStructuralObserver implements Observer {

	protected GidPostStructural gidPost;
	protected Model m;
	protected TimeStepObserver timeStepObserver;

	/**
	 * 
	 * @param m
	 * @param s
	 * @param projectDir
	 * @param projectName
	 */
	public GidStructuralObserver(Model m, TimeStepObserver o, String projectDir, String projectName) {
		this.m = m;
		this.timeStepObserver = o;
		gidPost = new GidPostStructural(projectDir, projectName);
	}

	/**
	 * 
	 * @param m
	 * @param s
	 * @param projectDir
	 * @param projectName
	 * @param fileName
	 */
	public GidStructuralObserver(Model m, TimeStepObserver o, String projectDir,
			String projectName, String fileName) {
		this.m = m;
		this.timeStepObserver = o;
		gidPost = new GidPostStructural(projectDir, projectName, fileName);
	}

	/**
	 * 
	 * @return the model
	 */
	public Model getModel() {
		return m;
	}
}
